﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VlcPlayer
{
    public class Localize
    {
        private static AppResources localizedresources = new AppResources();

        public AppResources Res { get { return localizedresources; } }

        public static string GetString(object value)
        {
            if (value == null)
            {
                return string.Empty;
            }
            try
            {
                return AppResources.ResourceManager.GetString(value.ToString());
            }
            catch (Exception)
            {
                return value.ToString();
            }
        }
    }
}
